IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_SrvrInstnc_SrvrInstncType]') AND parent_object_id = OBJECT_ID(N'[dbo].[SrvrInstnc]'))
BEGIN
     ALTER TABLE [dbo].[SrvrInstnc] DROP CONSTRAINT [FK_SrvrInstnc_SrvrInstncType]
END
GO

ALTER TABLE [dbo].[SrvrInstnc]  WITH CHECK ADD  CONSTRAINT [FK_SrvrInstnc_SrvrInstncType] 
     FOREIGN KEY([SrvrInstncTypeId]) REFERENCES [dbo].[SrvrInstncType] ([SrvrInstncTypeId])
GO
